package com.golxen.framework.activity.dao;


import com.golxen.framework.event.condition.dao.entity.UserActivityConditionData;

import java.util.List;
import java.util.Map;

public class UserActivityBussiness {
	public static Map<Integer, List<UserActivityConditionData>> getUserActivityConditionDataMap(long userId, List<Integer> activityIdList) {
		return new UserActivityDaoImpl().getUserActivityConditionDataMap(userId, activityIdList);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataListByType(int activityId, int conditionType){
		return new UserActivityDaoImpl().getUserActivityConditionDataListByType(activityId, conditionType);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataListByUserIdAndType(int activityId,long userId, int conditionType){
		return new UserActivityDaoImpl().getUserActivityConditionDataListByUserIdAndType(activityId,userId, conditionType);
	}


	public static Map<Integer, Map<Long, Map<Integer, List<UserActivityConditionData>>>> getActivityAllConditionData(List<Integer> activityIds) {
		return new UserActivityDaoImpl().getActivityAllConditionData(activityIds);
	}

	public static UserActivityConditionData getUserActivityConditionData(int activityId, long userId, int conditionId){
		return new UserActivityDaoImpl().getUserActivityConditionData(activityId, userId, conditionId);
	}

	public static boolean addUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return new UserActivityDaoImpl().add(userActivityConditionData);
	}

	public static boolean updateUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return new UserActivityDaoImpl().update(userActivityConditionData);
	}

	public static boolean batchAddUserActivityConditionData(List<UserActivityConditionData> tempAddUserActivityConditionDatas) {
        return new UserActivityDaoImpl().batchAdd(tempAddUserActivityConditionDatas);
    }
	
	public static boolean batchUpdateUserActivityConditionData(List<UserActivityConditionData> tempAddUserActivityConditionDatas) {
	    return new UserActivityDaoImpl().batchUpdate(tempAddUserActivityConditionDatas);
	}
}
